package com.store.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

//评价表实体类
@Data
public class Evaluate {
    private Integer eid;
    private Integer uid;
    private Integer pid;
    private String evaDesc;    //评价描述

    /**
     * 评价状态，买一次只能评价一次，评价或购买后都有改变该状态值
     * 买了 变为0，评价了 变为1
     */
    private Integer evaState;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date evaTime;
}
